'use server'
import { NextRequest,NextResponse } from "next/server";
import pool from "../lib/db";
export async function GET(request: NextRequest) {
  console.log(request);
 
   const result= await pool.query('SELECT * FROM vincty');
  return NextResponse.json(result.rows);
}